<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>

    <style>
        a {
            text-decoration: none;
        }
    </style>
</head>

<body>
    <div id="app">
        <a v-bind:href="url">抖音</a>
        <input type="text" v-model="url"></input>
        <input type="button" value="按钮" v-on:click="handle()">

        <input type="text" v-model="age"></input>
        <span v-if="age<=35">年轻人</span>
        <span v-else-if="35<=age<=60">中年人</span>
        <span v-else="age>=60">老年人</span>
        <span v-show="age>20">你好</span>

        <div v-for="arr in arrs" >{{arr}}</div>
    </div>
    <!-- <div id="arr">
        <input type="text" v-model="message">
        {{message}}
    </div> -->


</body>
<script>
    // new Vue({
    //     el: "#arr",
    //     data: {
    //         message: "hello world"
    //     }
    // })
    new Vue({
        el: "#app",
        data: {
            url: "https://www.douyin.com/?recommend=1",
            age: 40,
           arrs:[1,25,4,56,2],
        },
        methods: {
            handle: function () {
                alert("我被电击了");
            }

        }
    })
</script>

</html>